﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="true" assembly="Ghasam.Business" namespace="Ghasam.Business.Domain.Entity">
	<class name="Employee" table="Employee">
		<id name="Id" type="Int32" unsaved-value="0">
			<column name="ID" sql-type="int" not-null="true" unique="true" index="ID" />
			<generator class="native" />
		</id>
		<property name="FirstName" column="FirstName" type="String" length="50" />
		<property name="LastName" column="LastName" type="String" length="50"/>
		<property name="IsFormal" column="IsFormal" type="Boolean" />
		<property name="Insurance" column="Insurance" type="Boolean" />
		<property name="InsuranceNo" column="InsuranceNo" type="String" length="50" />
		<property name="Gender" column="Gender" type="Boolean" />
		<property name="Phone" column="Phone" type="String" length="50" />
		<property name="Address" column="Address" type="String" length="300" />
		<property name="Married" column="Married" type="Boolean" />
		<property name="BornPlace" column="BornPlace" type="String" length="50" />
		<property name="IdentityNumber" column="IdentityNumber" type="String" length="50" />
		<property name="SSN" column="SSN" type="String" length="20" />
		<property name="ExtraPay" column="ExtraPay" type="Single" />
		<property name="IsActive" column="IsActive" type="Boolean" />
		<property name="IsDeleted" column="IsDeleted" type="Boolean" />
		<property name="JoinedDate" column="JoinedDate" type="DateTime" />
		<property name="LeftDate" column="LeftDate" type="DateTime" />
		<property name="BirthDay" column="Birthday" type="DateTime" />
		<property name="ModifyDate" column="ModifyDate" type="DateTime" />
		<property name="Description" column="Description" type="String" length="300" />
		<many-to-one name="Education" column="EducationId" class="Education"/>
		<many-to-one name="JobTitle" column="JobTitleId" class="JobTitle"/>
		<many-to-one name="EmployeePaymentFrequency" column="PaymentFrequencyId" class="EmployeePaymentFrequency"/>
	</class>
</hibernate-mapping>